﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

	<!-- Styles -->
	
	<ImageBrush x:Key="BG" ImageSource="wallpaper.jpg"></ImageBrush>

	<Style x:Key="MainWindowStyle" TargetType="Window">
		<!--<Setter Property="Background">
			<Setter.Value>
				<ImageBrush ImageSource="wallpaper.jpg"></ImageBrush>
			</Setter.Value>
		</Setter>-->
	</Style>

	<SolidColorBrush x:Key="BackGradBorder" Color="DarkBlue"></SolidColorBrush>
	<SolidColorBrush x:Key="BackGradBorderDisabled" Color="DarkGray"></SolidColorBrush>
	<LinearGradientBrush x:Key="BackGradFill" StartPoint ="0,0" EndPoint ="0,1">
		<LinearGradientBrush.GradientStops>
			<GradientStop Color ="LightSkyBlue" Offset ="0"/>
			<GradientStop Color ="Blue" Offset ="0.5"/>
			<GradientStop Color ="LightSkyBlue" Offset ="1"/>
		</LinearGradientBrush.GradientStops>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="BackGradFillDisabled" StartPoint ="0,0" EndPoint ="0,1">
		<LinearGradientBrush.GradientStops>
			<GradientStop Color ="LightGray" Offset ="0"/>
			<GradientStop Color ="Gray" Offset ="0.5"/>
			<GradientStop Color ="LightGray" Offset ="1"/>
		</LinearGradientBrush.GradientStops>
	</LinearGradientBrush>

	<Style x:Key="NormalButton" TargetType="{x:Type Button}">
		<Setter Property="Margin" Value="0"></Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid>
						<Border x:Name="BackGrad" BorderThickness="1" BorderBrush ="{StaticResource BackGradBorder}" CornerRadius="5" Background="{StaticResource BackGradFill}">
						</Border>
						<Border BorderBrush ="Transparent" x:Name ="FadeMask" BorderThickness="1" Opacity ="0" CornerRadius="5">
							<Border.Background>
								<SolidColorBrush Color ="AliceBlue"/>
							</Border.Background>
						</Border>
						<Border x:Name ="Highlight" BorderThickness ="2" BorderBrush ="Transparent" CornerRadius="5">
							<Border.Background>
								<DrawingBrush>
									<DrawingBrush.Drawing>
										<GeometryDrawing>
											<GeometryDrawing.Brush>
												<LinearGradientBrush Opacity ="0.6" StartPoint ="0,0" EndPoint ="0,1">
													<LinearGradientBrush.GradientStops>
														<GradientStop Color ="White" Offset ="0"/>
														<GradientStop Color ="#AAFFFFFF" Offset ="1"/>
													</LinearGradientBrush.GradientStops>
												</LinearGradientBrush>
											</GeometryDrawing.Brush>
											<GeometryDrawing.Geometry>
												<EllipseGeometry Center ="0.5,0.5" RadiusX ="0.25" RadiusY ="0.35"/>
											</GeometryDrawing.Geometry>
										</GeometryDrawing>
									</DrawingBrush.Drawing>
									<DrawingBrush.RelativeTransform>
										<TransformGroup>
											<ScaleTransform CenterX ="0.5" CenterY ="0" ScaleX ="1.5" ScaleY ="0.8"/>
											<TranslateTransform Y="-0.3"></TranslateTransform>
										</TransformGroup>
									</DrawingBrush.RelativeTransform>
								</DrawingBrush>
							</Border.Background>
						</Border>
						<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" />
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.2" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.4" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="BackGrad" Property="Background" Value="{StaticResource BackGradFillDisabled}" />
							<Setter TargetName="BackGrad" Property="BorderBrush" Value="{StaticResource BackGradBorderDisabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style x:Key="NormalGreenButton" TargetType="{x:Type Button}">
		<Setter Property="Margin" Value="0"></Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid>
						<Border x:Name="BackGrad" BorderThickness="1" BorderBrush ="#2A6712" CornerRadius="5">
							<Border.Background>
								<LinearGradientBrush StartPoint ="0,0" EndPoint ="0,1">
									<LinearGradientBrush.GradientStops>
										<GradientStop Color ="#D5F976" Offset ="0"/>
										<GradientStop Color ="#5FA02B" Offset ="0.5"/>
										<GradientStop Color ="#D5F976" Offset ="1"/>
									</LinearGradientBrush.GradientStops>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<Border BorderBrush ="Transparent" x:Name ="FadeMask" BorderThickness="1" Opacity ="0" CornerRadius="5">
							<Border.Background>
								<SolidColorBrush Color ="AliceBlue"/>
							</Border.Background>
						</Border>
						<Border x:Name ="Highlight" BorderThickness ="2" BorderBrush ="Transparent" CornerRadius="5">
							<Border.Background>
								<DrawingBrush>
									<DrawingBrush.Drawing>
										<GeometryDrawing>
											<GeometryDrawing.Brush>
												<LinearGradientBrush Opacity ="0.6" StartPoint ="0,0" EndPoint ="0,1">
													<LinearGradientBrush.GradientStops>
														<GradientStop Color ="White" Offset ="0"/>
														<GradientStop Color ="#AAFFFFFF" Offset ="1"/>
													</LinearGradientBrush.GradientStops>
												</LinearGradientBrush>
											</GeometryDrawing.Brush>
											<GeometryDrawing.Geometry>
												<EllipseGeometry Center ="0.5,0.5" RadiusX ="0.25" RadiusY ="0.35"/>
											</GeometryDrawing.Geometry>
										</GeometryDrawing>
									</DrawingBrush.Drawing>
									<DrawingBrush.RelativeTransform>
										<TransformGroup>
											<ScaleTransform CenterX ="0.5" CenterY ="0" ScaleX ="1.5" ScaleY ="0.8"/>
											<TranslateTransform Y="-0.3"></TranslateTransform>
										</TransformGroup>
									</DrawingBrush.RelativeTransform>
								</DrawingBrush>
							</Border.Background>
						</Border>
						<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" />
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.2" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.4" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="BackGrad" Property="Background" Value="{StaticResource BackGradFillDisabled}" />
							<Setter TargetName="BackGrad" Property="BorderBrush" Value="{StaticResource BackGradBorderDisabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style x:Key="NormalRedButton" TargetType="{x:Type Button}">
		<Setter Property="Margin" Value="0"></Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid>
						<Border x:Name="BackGrad" BorderThickness="1" BorderBrush ="DarkRed" CornerRadius="5">
							<Border.Background>
								<LinearGradientBrush StartPoint ="0,0" EndPoint ="0,1">
									<LinearGradientBrush.GradientStops>
										<GradientStop Color ="Pink" Offset ="0"/>
										<GradientStop Color ="Red" Offset ="0.5"/>
										<GradientStop Color ="Pink" Offset ="1"/>
									</LinearGradientBrush.GradientStops>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<Border BorderBrush ="Transparent" x:Name ="FadeMask" BorderThickness="1" Opacity ="0" CornerRadius="5">
							<Border.Background>
								<SolidColorBrush Color ="AliceBlue"/>
							</Border.Background>
						</Border>
						<Border x:Name ="Highlight" BorderThickness ="2" BorderBrush ="Transparent" CornerRadius="5">
							<Border.Background>
								<DrawingBrush>
									<DrawingBrush.Drawing>
										<GeometryDrawing>
											<GeometryDrawing.Brush>
												<LinearGradientBrush Opacity ="0.6" StartPoint ="0,0" EndPoint ="0,1">
													<LinearGradientBrush.GradientStops>
														<GradientStop Color ="White" Offset ="0"/>
														<GradientStop Color ="#AAFFFFFF" Offset ="1"/>
													</LinearGradientBrush.GradientStops>
												</LinearGradientBrush>
											</GeometryDrawing.Brush>
											<GeometryDrawing.Geometry>
												<EllipseGeometry Center ="0.5,0.5" RadiusX ="0.25" RadiusY ="0.35"/>
											</GeometryDrawing.Geometry>
										</GeometryDrawing>
									</DrawingBrush.Drawing>
									<DrawingBrush.RelativeTransform>
										<TransformGroup>
											<ScaleTransform CenterX ="0.5" CenterY ="0" ScaleX ="1.5" ScaleY ="0.8"/>
											<TranslateTransform Y="-0.3"></TranslateTransform>
										</TransformGroup>
									</DrawingBrush.RelativeTransform>
								</DrawingBrush>
							</Border.Background>
						</Border>
						<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" />
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.2" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.4" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="BackGrad" Property="Background" Value="{StaticResource BackGradFillDisabled}" />
							<Setter TargetName="BackGrad" Property="BorderBrush" Value="{StaticResource BackGradBorderDisabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="CenterButton" TargetType="{x:Type Button}">
		<Setter Property="Margin" Value="0"></Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid>
						<Ellipse x:Name ="BackGrad" StrokeThickness="1" Stroke ="{StaticResource BackGradBorder}" Fill="{StaticResource BackGradFill}">
						</Ellipse>
						<Ellipse Stroke ="Transparent" x:Name ="FadeMask" StrokeThickness="1" Opacity ="0">
							<Ellipse.Fill>
								<SolidColorBrush Color ="AliceBlue"/>
							</Ellipse.Fill>
						</Ellipse>
						<Ellipse x:Name ="Highlight" StrokeThickness ="2" Stroke ="Transparent">
							<Ellipse.Fill>
								<DrawingBrush>
									<DrawingBrush.Drawing>
										<GeometryDrawing>
											<GeometryDrawing.Brush>
												<LinearGradientBrush Opacity ="0.6" StartPoint ="0,0" EndPoint ="0,1">
													<LinearGradientBrush.GradientStops>
														<GradientStop Color ="White" Offset ="0"/>
														<GradientStop Color ="#AAFFFFFF" Offset ="1"/>
													</LinearGradientBrush.GradientStops>
												</LinearGradientBrush>
											</GeometryDrawing.Brush>
											<GeometryDrawing.Geometry>
												<EllipseGeometry Center ="0.5,0.5" RadiusX ="0.25" RadiusY ="0.35"/>
											</GeometryDrawing.Geometry>
										</GeometryDrawing>
									</DrawingBrush.Drawing>
									<DrawingBrush.RelativeTransform>
										<ScaleTransform CenterX ="0.5" CenterY ="0" ScaleX ="1" ScaleY ="0.5"/>
									</DrawingBrush.RelativeTransform>
								</DrawingBrush>
							</Ellipse.Fill>
						</Ellipse>
						<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" />
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.2" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.4" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="BackGrad" Property="Fill" Value="{StaticResource BackGradFillDisabled}" />
							<Setter TargetName="BackGrad" Property="Stroke" Value="{StaticResource BackGradBorderDisabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="LeftButton" TargetType="{x:Type Button}">
		<Setter Property="Margin" Value="0,0,0,0"></Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid>
						<Path Stretch="Uniform" x:Name="BackGrad" StrokeThickness="1" Stroke="{StaticResource BackGradBorder}" Fill="{StaticResource BackGradFill}" Data="M 0,0 A 41,31 0 0 0 0,31 L 37,31 A 41,31 0 0 1 37,0 Z">
						</Path>
						<Path Stretch="Uniform" Stroke="Transparent" x:Name ="FadeMask" StrokeThickness="1" Opacity ="0" Data="M 0,0 A 41,31 0 0 0 0,31 L 37,31 A 41,31 0 0 1 37,0 Z">
							<Path.Fill>
								<SolidColorBrush Color ="AliceBlue"/>
							</Path.Fill>
						</Path>
						<Path x:Name ="Highlight" Stretch="Uniform" Stroke="Transparent" StrokeThickness="2" Data="M 0,0 A 41,31 0 0 0 0,31 L 37,31 A 41,31 0 0 1 37,0 Z">
							<Path.Fill>
								<DrawingBrush>
									<DrawingBrush.Drawing>
										<GeometryDrawing>
											<GeometryDrawing.Brush>
												<LinearGradientBrush Opacity ="0.6" StartPoint ="0,0" EndPoint ="0,1">
													<LinearGradientBrush.GradientStops>
														<GradientStop Color ="White" Offset ="0"/>
														<GradientStop Color ="#AAFFFFFF" Offset ="1"/>
													</LinearGradientBrush.GradientStops>
												</LinearGradientBrush>
											</GeometryDrawing.Brush>
											<GeometryDrawing.Geometry>
												<EllipseGeometry Center ="0.5,0.5" RadiusX ="0.25" RadiusY ="0.35"/>
											</GeometryDrawing.Geometry>
										</GeometryDrawing>
									</DrawingBrush.Drawing>
									<DrawingBrush.RelativeTransform>
										<TransformGroup>
											<ScaleTransform CenterX ="0.5" CenterY ="0" ScaleX ="1.5" ScaleY ="0.8"/>
											<TranslateTransform Y="-0.3"></TranslateTransform>
										</TransformGroup>
									</DrawingBrush.RelativeTransform>
								</DrawingBrush>
							</Path.Fill>
						</Path>
						<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" />
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.2" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.4" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="BackGrad" Property="Fill" Value="{StaticResource BackGradFillDisabled}" />
							<Setter TargetName="BackGrad" Property="Stroke" Value="{StaticResource BackGradBorderDisabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="RightButton" TargetType="{x:Type Button}">
		<Setter Property="Margin" Value="0,0,0,0"></Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid>
						<Path Stretch="Uniform" x:Name="BackGrad" StrokeThickness="1" Stroke="{StaticResource BackGradBorder}" Fill="{StaticResource BackGradFill}" Data="M 0,0 A 41,31 0 0 1 0,31 L 37,31 A 41,31 0 0 0 37,0 Z">
						</Path>
						<Path Stretch="Uniform" Stroke="Transparent" x:Name ="FadeMask" StrokeThickness="1" Opacity ="0" Data="M 0,0 A 41,31 0 0 1 0,31 L 37,31 A 41,31 0 0 0 37,0 Z">
							<Path.Fill>
								<SolidColorBrush Color ="AliceBlue"/>
							</Path.Fill>
						</Path>
						<Path x:Name ="Highlight" Stretch="Uniform" Stroke="Transparent" StrokeThickness="2" Data="M 0,0 A 41,31 0 0 1 0,31 L 37,31 A 41,31 0 0 0 37,0 Z">
							<Path.Fill>
								<DrawingBrush>
									<DrawingBrush.Drawing>
										<GeometryDrawing>
											<GeometryDrawing.Brush>
												<LinearGradientBrush Opacity ="0.6" StartPoint ="0,0" EndPoint ="0,1">
													<LinearGradientBrush.GradientStops>
														<GradientStop Color ="White" Offset ="0"/>
														<GradientStop Color ="#AAFFFFFF" Offset ="1"/>
													</LinearGradientBrush.GradientStops>
												</LinearGradientBrush>
											</GeometryDrawing.Brush>
											<GeometryDrawing.Geometry>
												<EllipseGeometry Center ="0.5,0.5" RadiusX ="0.25" RadiusY ="0.35"/>
											</GeometryDrawing.Geometry>
										</GeometryDrawing>
									</DrawingBrush.Drawing>
									<DrawingBrush.RelativeTransform>
										<TransformGroup>
											<ScaleTransform CenterX ="0.5" CenterY ="0" ScaleX ="1.5" ScaleY ="0.8"/>
											<TranslateTransform Y="-0.3"></TranslateTransform>
										</TransformGroup>
									</DrawingBrush.RelativeTransform>
								</DrawingBrush>
							</Path.Fill>
						</Path>
						<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center" />
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.2" />
						</Trigger>
						<Trigger Property="IsPressed" Value="True">
							<Setter TargetName="FadeMask" Property="Opacity" Value="0.4" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="BackGrad" Property="Fill" Value="{StaticResource BackGradFillDisabled}" />
							<Setter TargetName="BackGrad" Property="Stroke" Value="{StaticResource BackGradBorderDisabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style x:Key="NormalBorder" TargetType="{x:Type Path}">
		<Style.Triggers>
			<Trigger Property="IsEnabled" Value="False">
				<Setter Property="Stroke" Value="Gray" />
			</Trigger>
		</Style.Triggers>
	</Style>

</ResourceDictionary>